package com.woniu.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 会员表
 * </p>
 *
 * @author xiaoruan
 * @since 2023-03-21
 */
@Data
@TableName("wnxt_user")
@ApiModel(value = "User对象", description = "会员表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("会员id")
      @TableId(type = IdType.ASSIGN_ID)
      private String id;

      @ApiModelProperty("微信openid")
      private String openid;

      @ApiModelProperty("手机号")
      private String mobile;

      @ApiModelProperty("密码")
      private String password;

      @ApiModelProperty("昵称")
      private String nickname;

      @ApiModelProperty("性别 1 女，2 男")
      private Byte sex;

      @ApiModelProperty("年龄")
      private Byte age;

      @ApiModelProperty("用户头像")
      private String avatar;

      @ApiModelProperty("用户签名")
      private String sign;

      @ApiModelProperty("是否禁用 1（true）已禁用，  0（false）未禁用")
      private Byte isDisabled;

      @ApiModelProperty("逻辑删除 1（true）已删除， 0（false）未删除")
      @TableLogic
      private Byte isDeleted;

      @ApiModelProperty("创建时间")
      @TableField(fill = FieldFill.INSERT)
      private Date createTime;

      @ApiModelProperty("更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;
}
